import request from '@/utils/request'

// 查询展示首页列表
export function listShowIndex(query) {
    return request({
        url: '/manage-api/business/show-index/list',
        method: 'get',
        params: query
    })
}

// 查询展示首页详细
export function getShowIndex(indexId) {
    return request({
        url: '/manage-api/business/show-index/' + indexId,
        method: 'get'
    })
}

// 新增展示首页
export function addShowIndex(data) {
    return request({
        url: '/manage-api/business/show-index',
        method: 'post',
        data: data
    })
}

// 修改展示首页
export function updateShowIndex(data) {
    return request({
        url: '/manage-api/business/show-index',
        method: 'put',
        data: data
    })
}

// 删除展示首页
export function delShowIndex(indexId) {
    return request({
        url: '/manage-api/business/show-index/' + indexId,
        method: 'delete'
    })
}
// 首页下拉
export function listTIndex() {
    return request({
        url: '/manage-api/business/show-index/list-select',
        method: 'get'
    })
}
